﻿using SharpSoft.Lexing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpSoft.Documentation.Html.CSS
{
    internal class CssPropertiesToken : IToken
    {
        public CssPropertiesToken(int pos, int length, CssPropertiesTokenType type,string content)
        {
            _Position = pos;
            _Length = length;
            _Content = content;
            _Type = type;
            
        }
        private int _Position;

        public int Position
        {
            get { return _Position; }
            set { _Position = value; }
        }

        private int _Length;

        public int Length
        {
            get { return _Length; }
            set { _Length = value; }
        }

        private CssPropertiesTokenType _Type;
        /// <summary>
        /// 标记类型
        /// </summary>
        public CssPropertiesTokenType Type
        {
            get { return _Type; }
            set { _Type = value; }
        }
        
        private string _Content;
        /// <summary>
        /// 标记内容
        /// </summary>
        public string Content
        {
            get { return _Content; }
            set { _Content = value; }
        }
        
    }

    public enum CssPropertiesTokenType
    {
        PropertyName,
        PropertyValue
    }
}
